﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<h4>FOCUS</h4>

<ul class="main-nav-items">
    <li name="inbox">
        <a class="side-bar-action inbox" href="#/inbox">
            <span class="main-nav-ico inbox">Inbox</span>
            <span>Inbox</span>
        </a>
        <% if (Int32.Parse(Html.Action("InboxCount", "TaskStatistics").ToString()) > 0) {%>
            <span class="task-count inbox-count"><% Html.RenderAction("InboxCount", "TaskStatistics");%></span>        
        <% } %>
    </li>
    <li name="upcoming">
        <a class="side-bar-action upcominglink" href="#/upcoming">
            <span class="main-nav-ico upcoming">Upcoming</span>
            <span>Upcoming</span>
        </a>
        <% if( Int32.Parse(Html.Action("UpcomingCount", "TaskStatistics").ToString()) > 0) {%>
            <span class="task-count upcoming-count"><% Html.RenderAction("UpcomingCount", "TaskStatistics");%></span>        
        <% } %>
    </li>
    <li name="flagged">
        <a class="side-bar-action flaggedlink" href="#/flagged">
            <span class="main-nav-ico flagged">Flagged</span>
            <span>Flagged</span>
        </a>
        <% if( Int32.Parse(Html.Action("FlaggedCount", "TaskStatistics").ToString()) > 0) {%>
            <span class="task-count flagged-count"><% Html.RenderAction("FlaggedCount", "TaskStatistics");%></span>        
        <% } %>
    </li>
    <li name="all">
        <a class="side-bar-action all" href="#/all">
            <span class="main-nav-ico alltask">All task</span>
            <span>All task</span>
        </a>
        <% if( Int32.Parse(Html.Action("AllTasksCount", "TaskStatistics").ToString()) > 0) {%>
            <span class="task-count all-count"><% Html.RenderAction("AllTasksCount", "TaskStatistics");%></span>        
        <% } %>
    </li>
</ul>
